.TH "redis/service_redis_client.hpp" 3 "Thu Jun 3 2021" "Detail" \" -*- nroff -*-
.ad l
.nh
.SH NAME
redis/service_redis_client.hpp \- 服务redis客户端  

.SH SYNOPSIS
.br
.PP
\fC#include 'box/service_context\&.hh'\fP
.br
\fC#include 'hiredis/include/hiredis\&.h'\fP
.br
\fC#include 'redis/redis\&.hh'\fP
.br
\fC#include 'service_tool\&.hpp'\fP
.br
\fC#include 'singleton\&.hpp'\fP
.br

.SS "Classes"

.in +1c
.ti -1c
.RI "class \fBguild_service::common::service_redis_client\fP"
.br
.RI "服务redis客户端类 "
.in -1c
.SS "Macros"

.in +1c
.ti -1c
.RI "#define \fBRedisClientSingleton\fP(\&.\&.\&.)"
.br
.RI "redis客户端单例 "
.in -1c
.SS "Typedefs"

.in +1c
.ti -1c
.RI "using \fBguild_service::redis_handler_type\fP = common::service_redis_client::redis_handler_type"
.br
.RI "redis回调函数类型 "
.ti -1c
.RI "using \fBguild_service::redis_result_type\fP = common::service_redis_client::redis_result_type"
.br
.RI "redis返回结果类型 "
.ti -1c
.RI "using \fBguild_service::redis_reply_type\fP = common::service_redis_client::redis_reply_type"
.br
.RI "redis返回原始类型 "
.in -1c
.SS "Variables"

.in +1c
.ti -1c
.RI "constexpr uint32_t \fBguild_service::kRedisCommonTimeOut\fP"
.br
.RI "redis通用同步超时时间（单位 毫秒） "
.ti -1c
.RI "constexpr uint32_t \fBguild_service::kRedisCommonTimeOutAsync\fP"
.br
.RI "redis通用异步超时时间（单位 毫秒） "
.ti -1c
.RI "constexpr char \fBguild_service::kRedisHost\fP [] = '127\&.0\&.0\&.1'"
.br
.RI "redis连接IP "
.ti -1c
.RI "constexpr uint32_t \fBguild_service::kRedisPort\fP = 6379"
.br
.RI "redis连接端口 "
.ti -1c
.RI "constexpr char \fBguild_service::kRedisUser\fP [] = ''"
.br
.RI "redis连接用户名 "
.ti -1c
.RI "constexpr char \fBguild_service::kRedisPasswd\fP [] = ''"
.br
.RI "redis连接密码 "
.ti -1c
.RI "constexpr char \fBguild_service::kRedisGetOp\fP [] = 'GET '"
.br
.ti -1c
.RI "constexpr char \fBguild_service::kRedisSetOp\fP [] = 'SET '"
.br
.ti -1c
.RI "constexpr char \fBguild_service::kRedisDelOp\fP [] = 'DEL '"
.br
.ti -1c
.RI "constexpr char \fBguild_service::kRedisHGetOp\fP [] = 'HGET '"
.br
.ti -1c
.RI "constexpr char \fBguild_service::kRedisHSetOp\fP [] = 'HSET '"
.br
.ti -1c
.RI "constexpr char \fBguild_service::kRedisHDelOp\fP [] = 'HDEL '"
.br
.in -1c
.SH "Detailed Description"
.PP 
服务redis客户端 


.PP
\fBDate\fP
.RS 4
2021/05/10 21:03
.RE
.PP
\fBAuthor\fP
.RS 4
harrybao (harrybao@123u.com)
.RE
.PP
\fBVersion\fP
.RS 4
v1\&.0\&.0
.RE
.PP
\fBCopyright\fP
.RS 4
Copyright © 2021 All Rights Reserved 上海欢乐互娱网络科技有限公司
.RE
.PP
\fBhistory:\fP
.RS 4
Date Version Author Description 2021/05/10 21:03 1\&.0\&.0 harrybao 创建初始版本 
.RE
.PP

.SH "Macro Definition Documentation"
.PP 
.SS "#define RedisClientSingleton( \&.\&.\&.)"
\fBValue:\fP
.PP
.nf
  (*common::singleton<common::service_redis_client>::instance( \
      __VA_ARGS__))
.fi
.PP
redis客户端单例 
.SH "Variable Documentation"
.PP 
.SS "constexpr uint32_t guild_service::kRedisCommonTimeOut\fC [constexpr]\fP"
\fBInitial value:\fP
.PP
.nf
=
    1000
.fi
.PP
redis通用同步超时时间（单位 毫秒） 
.SS "constexpr uint32_t guild_service::kRedisCommonTimeOutAsync\fC [constexpr]\fP"
\fBInitial value:\fP
.PP
.nf
=
    1000
.fi
.PP
redis通用异步超时时间（单位 毫秒） 
.SH "Author"
.PP 
Generated automatically by Doxygen for Detail from the source code\&.
